package com.zt.teacher.service.impl;

import com.zt.common.pojo.origin.OriginClass;
import com.zt.teacher.dao.OriginClassDao;
import com.zt.teacher.service.OriginClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2021-12-26
 */
@Service
@Transactional
public class OriginClassServiceImpl implements OriginClassService {

    @Autowired
    private OriginClassDao originClassDao;

    @Override
    public List<OriginClass> getAllClass() {
        return originClassDao.getAllClass();
    }

    @Override
    public List<OriginClass> getClassByCollegeId(int collegeId) {
        return originClassDao.getClassByCollegeId(collegeId);
    }
}
